   <script src="<?=base_url().$this->config->item('FAL_assets_shared').'/'.$this->config->item('FAL_js');?>/calendar.js" type="text/javascript"></script>
   <script src="<?=base_url().$this->config->item('FAL_assets_shared').'/'.$this->config->item('FAL_js');?>/calendar-setup.js" type="text/javascript"></script>
     <script src="<?=base_url().$this->config->item('FAL_assets_shared').'/'.$this->config->item('FAL_js');?>/calendar-en.js" type="text/javascript"></script>
  
   <link rel="stylesheet" type="text/css" href="<?=base_url().$this->config->item('FAL_assets_shared').'/'.$this->config->item('FAL_css');?>/skins/aqua/theme.css" />
    
  <?=form_open($this->uri->uri_string()); ?>
  <table>
		
       <tr>
      <td>Services Date :</td>
	                <td>
	                 <?=form_input(array('id'=>'date',
                     'name'=>'date',
                     'value' =>'',
            
                     'size'  => '30')); ?>
                    <button type="reset" id="f_trigger_b">...</button>
                    <script type="text/javascript">
        Calendar.setup({
        inputField     :    "date",      // id of the input field
        ifFormat       :    "%m/%d/%Y ", // format of the input field
       
        button         :    "f_trigger_b",   // trigger for the calendar (button ID)
        singleClick    :    false,           // double-click mode
        step           :    1                // show all years in drop-down boxes (instead of every other year as default)
            });
			</script>
        </td>
        <td><input type="submit" value="search"></input></td>
        </tr>
						
</table>



<?php
   if($page2->num_rows()>0): ?>
<?php foreach ($page2->result() as $row):?>

<table >
<tr>
<td >
<?=$row->userid ?></td><td>
<?=$row->servicetype ?></td><td>
<?=$row->date ?>
</td>
</tr>
<?php endforeach;?>
<?php endif; ?>
</table>